package com.handsome.解释器模式;

import java.util.HashMap;

/**
 * @author niechun
 * @date 2023/3/26 15:53
 */
public class Client {
    public static void main(String[] args) {
        HashMap<String,Integer> map=new HashMap<>();
        map.put("a",1);
        map.put("b",20);
        map.put("c",3);
        String execute="a+b-c";
        Calculator calculator = new Calculator(execute);
        System.out.println(execute+"结果是："+ calculator.run(map));

    }
}
